/*
 * =====================================================================================
 *
 *       Filename:  error.c
 *
 *
 *        Created:  10/02/2011 09:43:51 PM
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  durand_y, <durand.yoan@gmail.com>
 *
 * =====================================================================================
 */
#include "myread.h"

void	error(int	i,
			char *cmd)
{
	if (i == 1)
		printf("Error : No file found\n");
	else if (i == 2)
	{
		printf ("Error Unknown command : %s \n", cmd);
		write(STDOUT_FILENO, "> ", 2);
	}

}

